<p>
    <?php
    echo __t('mandrill.setup.welcome');
    ?>
</p>
<br />
<form id="frmSetup" action="?r=ml-setup/home/finalize" method="post">
    <p id="1-step" class="form">
        <?php
        echo __t('mandrill.setup.name');
        ?>
        <br /><br />
        <label for="name" class="text">
        <?php
        echo __t('mandrill.setup.form.name');
        ?>
        </label>
        <input type="text" name="name" class="text" />
        <br /><br />
        <?php
        echo __tag('a', array('class' => 'button buttonStepNext', 'href' => '#'), __t('mandrill.setup.nextStep'));
        ?>
    </p>
    <br />
    <p id="2-step" class="hide form">
        <?php
        echo __t('mandrill.setup.language');
        ?>
        <br /><br />
        <label for="language" class="text">
        <?php
        echo __t('mandrill.setup.form.language');
        ?>
        </label>
        <?php
        if (isset($languages) && !empty($languages)):
        ?>
        <select name="language">
            <?php
            foreach ($languages as $language){
                echo __tag('option', array('value'=>$language), $language);
            }
            ?>
        </select>
        <?php
        else:
        ?>
        <input type="text" name="language" class="text" />
        <?php
        endif;
        ?>
        <br /><br />
        <?php
        echo __t('mandrill.setup.baseUrl');
        ?>
        <br /><br />
        <label for="baseUrl" class="text">
        <?php
        echo __t('mandrill.setup.form.baseUrl');
        ?>
        </label>
        <input type="text" name="baseUrl" class="text" />
        <br /><br />
        <?php
        echo __tag('a', array('class' => 'button buttonStepPrevious', 'href' => '#'), __t('mandrill.setup.previousStep'));
        echo '&nbsp;&nbsp;';
        echo __tag('a', array('class' => 'button buttonStepNext', 'href' => '#'), __t('mandrill.setup.nextStep'));
        ?>
    </p>
    <br />
    <p id="3-step" class="hide form">
        <?php
        echo __t('mandrill.setup.database');
        ?>
        <br /><br />
        <label for="databaseName" class="text">
        <?php
        echo __t('mandrill.setup.form.databaseName');
        ?>
        </label>
        <input type="text" name="databaseName" class="text"/>
        <br /><br />
        <label for="databaseLogin" class="text">
        <?php
        echo __t('mandrill.setup.form.databaseLogin');
        ?>
        </label>
        <input type="text" name="databaseLogin" class="text" />
        <br /><br />
        <label for="databasePassword" class="text">
        <?php
        echo __t('mandrill.setup.form.databasePassword');
        ?>
        </label>
        <input type="text" name="databasePassword" class="text" />
        <br /><br />
        <label for="databaseHost" class="text">
        <?php
        echo __t('mandrill.setup.form.databaseHost');
        ?>
        </label>
        <input type="text" name="databaseHost" class="text" />
        <br /><br />
        <?php
        echo __tag('a', array('class' => 'button buttonStepPrevious', 'href' => '#'), __t('mandrill.setup.previousStep'));
        echo '&nbsp;&nbsp;';
        echo __tag('a', array('class' => 'button', 'href' => '#', 'id'=>'butSubmit'), __t('mandrill.setup.submit'));
        ?>
    </p>
    <br />
    <p class="align-right">
        <?php
        echo __tag('a', array('class' => 'ajax', 'href' => '?r=ml-setup'), __t('mandrill.setup.goback'));
        ?>
    </p>
</form>